SRCS =  route.cpp main.cpp protocol.cpp
OBJS =  route.o main.o protocol.o
HDRS = ../define/define.h
LIBUTILS = libmain.a

CC = g++
CFLAGS = -c -g
INCLUDES = ../define
%.o : %.cpp
	$(CC) $(CFLAGS) -I$(INCLUDES) $< $(LDFLAGS) -o  $@

$(LIBUTILS): $(OBJS)
	ar -cr $(LIBUTILS) $(OBJS)
	ranlib $(LIBUTILS)

clean:
	rm -f *.o *.a
